{% extends "admin_tools/dashboard/module.html" %}
{% load admin_tools_dashboard_tags %}
{% block module_content %}
<div class="group group-{{ module.display }}">
    {% spaceless %}
    {% ifequal module.display "tabs" %}
    <ul>
    {% for sub_module in module.children %}
        <li class="group-tabs-link"><a href="#module_{{ index }}_{{ forloop.counter }}">{{ sub_module.title }}</a></li>
    {% endfor %}
    </ul>
    {% endifequal %}
    {% ifequal module.display "accordion" %}
    {% for sub_module in module.children %}
        <span class="group-accordion-header"><a href="#">{{ sub_module.title }}</a></span>
        {% admin_tools_render_dashboard_module sub_module index forloop.counter %}
    {% endfor %}
    {% else %}
    {% for sub_module in module.children %}
        {% admin_tools_render_dashboard_module sub_module index forloop.counter %}
    {% endfor %}
    {% endifequal %}
    {% endspaceless %}
</div>
{% endblock %}
